package com.snake.springboot.custom.dao.mybatis.mappers.points;

import com.snake.springboot.custom.dao.mybatis.entity.points.PointsRgeRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PointsRgeRecordMapper {
    int delete(String recordId);

    int insert(PointsRgeRecordDO record);

    int update(PointsRgeRecordDO record);

    int batchInsert(@Param("list") List<PointsRgeRecordDO> list);

    List<PointsRgeRecordDO> queryList(PointsRgeRecordDO queryDO);

    int addPayId(@Param("recordId") String recordId, @Param("payId") String payId);

    PointsRgeRecordDO queryById(String recordId);

    void updatePayState(PointsRgeRecordDO recordDO);

    void updateRet(PointsRgeRecordDO recordDO);

    int queryLimitBuy(@Param("customId") String customId, @Param("tempId") String tempId);
}